/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.icinfo.framework.mybatis.mapper.annotation.Before;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 直通车文书暂存记录，对应实体类
 *
 * @author Junfeng.Chen
 * @date 2024/1/10 10:52
 **/
@Table(name = "upcase.app_case_before_document_temporary_record")
@Data
public class AppCaseBeforeDocumentTemporaryRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @Before
    private String id;

    /**
     * 文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 文书内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 新增暂存记录用户id
     */
    @Column(name = "add_user")
    private String addUser;

    /**
     * 用户组织编码
     */
    @Column(name = "org_code")
    private String orgCode;

    /**
     * 用户区划编码
     */
    @Column(name = "area_code")
    private String areaCode;

    /**
     * 来源id
     */
    @Column(name = "source_id")
    private String sourceId;

    /**
     * 来源类型
     */
    @Column(name = "source_type")
    private String sourceType;


    /**
     * 文书创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

}
